package com.itheima.mapper;

import com.itheima.pojo.Exercise;
import com.itheima.pojo.Food;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface InterventionMapper {


    List<Map> findByTelephone(String telephone);

    List<Map> findAllByCondition(@Param("after") String after, @Param("before") String before, @Param("queryString") String queryString,@Param("telephone")String telephone);

    Map<String, Object> findById(@Param("id")Integer id,@Param("orderDate")String orderDate,@Param("telephone")String telephone);

    int findOrderIdBySetmealId(@Param("id")Integer id,@Param("orderDate")String orderDate,@Param("telephone")String telephone);

    int findDoctorIdByOrderId(int orderId);

    List<Food> findFoodNameByDoctorId(int doctorId);

    List<Exercise> findExerciseNameByDoctorId(int doctorId);

    Map<String,Object> findOrderById(@Param("id")Integer id,@Param("orderDate")String orderDate,@Param("telephone")String telephone);

}
